<extend name="Public/base" />
<block name="meta">
	<title>{$goods_data.goods_name|htmlspecialchars}【价格_图片_评论_团购】-哈尔滨家家户户网</title>
	<meta keywords="{$goods_data.goods_name|htmlspecialchars}价格，{$goods_data.goods_name|htmlspecialchars}图片，{$goods_data.goods_name|htmlspecialchars}团购">
	<meta description="哈尔滨家家户户网提供：{$goods_data.goods_name|htmlspecialchars}价格及效果图，正品供应，品质无忧，低价保障，买贵双倍返还差价。">
</block>
<block name="head_css">
	<link rel="stylesheet" href="__SALE_V3__/css/detail.pkg.css"/>
</block>
<block name="content">
<!-- 固定信息条 -->
<div class="g-info" id="j-fixed-info">
	<div class="g-info-c">
		<div class="goods-nav" id="j-goods-nav">
			<a class="btn btn-active goods-tab-btn-1">商品详情</a>
			<a class="btn goods-tab-btn-2">购买须知</a>
			<a class="btn goods-tab-btn-3">平台保障</a>
		</div>
		<div class="goods-info">
			<div class="img">
				<img src="{$goods_data.pic_id|getPictureThumb=###,40,40}" />
			</div>
			<div class="name">
				{$goods_data.goods_name|htmlspecialchars}
			</div>
			<if condition="$goods_data.goods_type eq 1">         
				<a class="price-new">{$goods_data.promotion_price|htmlspecialchars}</a>
				<a class="price-old">{$goods_data.market_price|htmlspecialchars}</a>
			<else />
				<a class="price-new">{$goods_data.shop_price|htmlspecialchars}</a>
				<a class="price-old">{$goods_data.market_price|htmlspecialchars}</a>
			</if>
			<if condition="$goods_data.status eq 2">		
				<button href="#" class="btn-buy btn-buy1 js_btn" id="btn-buy11" disabled="true">已下架</button>
			<elseif condition="$goods_data.goods_type eq 2 and $goods_data.goods_stock eq 0" />
				<button href="#" class="btn-buy btn-buy1 js_btn" id="btn-buy11" disabled="true" >已售罄</button>
			<elseif condition="$goods_data.goods_type eq 0 and $goods_data.goods_stock eq 0" />
				<button href="#" class="btn-buy btn-buy1 js_btn" id="btn-buy11" disabled="true" >已售罄</button>
			<elseif condition="($goods_data.goods_type eq 1) and ($goods_data['promotion_start_time'] lt time()) and ($goods_data['promotion_end_time'] gt time()) and ($goods_data['promotion_stock'] eq 0)" />
				<button href="#" class="btn-buy btn-buy1 js_btn" id="btn-buy11" disabled="true">已售罄</button>
			<elseif condition="$goods_data.goods_type eq 1 and $goods_data['promotion_end_time'] lt time() and $goods_data.promotion_stock eq 0" />
				<button href="#" class="btn-buy btn-buy1 js_btn" id="btn-buy11" disabled="true">已售罄</button>
			<elseif condition="$goods_data.goods_type eq 1 and $goods_data['promotion_start_time'] gt time()" />
				<button href="#" class="btn-buy btn-buy1 js_btn" id="btn-buy11" disabled="true">即将开始</button>
			<elseif condition="$goods_data.goods_type eq 1 and $goods_data['promotion_end_time'] lt time() and $goods_data.promotion_stock gt 0" />
				<button href="#" class="btn-buy btn-buy1 js_btn" id="btn-buy11" disabled="true">促销结束</button>
			<else />
				<button href="#" class="btn-buy js_btn" id="btn-buy11">立即购买</button>
			</if>
			<div class="clearfix"></div>
		</div>
		<div class="clearfix"></div>
	</div>
</div>
    <!-- /固定信息条 -->

    <!-- 主体 -->
    <div class="g-bd clearfix">
      <div class="m-position">
        <div class="row place">
         <span class="category category-0"><a href="/">首页</a></span>
         <span class="symbol"> > </span>
         <span class="category category-2"><a href="{:U('shop/sale')}">天天特卖 </a></span>
         <span class="symbol"> > </span>
         <span class="category category-1"><a href="#">{$goods_data.goods_name|htmlspecialchars}</a></span>
        </div>
      </div>
      
      <!-- 商品信息 -->
  <div class="row m-goodsinfo">
        <div class="block goods-img goods_big_img">
        <!-- 暂时屏蔽 -->
        
         <img src="{$goods_data.pic_id|getPictureThumb=###,440,440}" data-original="{$goods_data.pic_id|getPictureThumb=###,440,440}" class="lazy">
        </div>

        <if condition = "$goods_data.goods_type eq 1 and $goods_data['promotion_start_time'] gt NOW_TIME">
        	<div class="goods-info nogoods goods-info-1"
	          data-cutedown-1="{$goods_data['promotion_start_time'] - NOW_TIME}"  
	          data-cutedown-2="{$goods_data['promotion_end_time'] - NOW_TIME}" 
	          data-text-1="即将开始" 
	          data-text-2="立即购买" 
	          data-text-3="促销结束">
       	<elseif condition = "$goods_data.goods_type eq 1 and $goods_data['promotion_end_time'] lt NOW_TIME"/>
        	<div class="goods-info nogoods"  
	          data-cutedown-1=""  
	          data-cutedown-2="" 
	          data-text-1="" 
	          data-text-2="" 
	          data-text-3="">
	    <elseif condition = "$goods_data.goods_type eq 1 and $goods_data['promotion_stock'] eq 0" />
       		<div class="goods-info nogoods"  
	          data-cutedown-1=""  
	          data-cutedown-2="" 
	          data-text-1="" 
	          data-text-2="" 
	          data-text-3="">
        <elseif condition = "$goods_data.goods_type eq 1" />
       		<div class="goods-info nogoods goods-info-1"
	          data-cutedown-1="{$goods_data['promotion_start_time'] - NOW_TIME}"  
	          data-cutedown-2="{$goods_data['promotion_end_time'] - NOW_TIME}" 
	          data-text-1="即将开始" 
	          data-text-2="立即购买" 
	          data-text-3="促销结束">
	    <else/>
	    	<div class="goods-info nogoods"  
	          data-cutedown-1=""  
	          data-cutedown-2="" 
	          data-text-1="" 
	          data-text-2="" 
	          data-text-3="">
		</if>
       		
          <div class="unit u-tit">{$goods_data.goods_name|htmlspecialchars}</div>
          <p class="unit u-msg">{$goods_data.goods_title|htmlspecialchars}</p>
	      <p class="unit unit1 unit-5">{$goods_data.goods_introduction|htmlspecialchars}</p>

	<if condition = "$goods_data.goods_type eq 1 and $goods_data['promotion_start_time'] gt NOW_TIME">
		<div class="unit u-money">
			<p class="time">
				<a style="color:#fff;" id="j-timer-text" >距离活动开始 </a>
				<span class="hour">{$time.hour|htmlspecialchars}</span>时
				<span class="min">{$time.min|htmlspecialchars}</span>分
				<span class="sec">{$time.sec|htmlspecialchars}</span>秒
			</p>
	<elseif condition = "$goods_data.goods_type eq 1 and $goods_data['promotion_end_time'] lt NOW_TIME"/>
		<div class="unit u-money u-money1">
	<elseif condition = "$goods_data.goods_type eq 1 and $goods_data['promotion_stock'] eq 0" />
		<div class="unit u-money u-money1">
    <elseif condition = "$goods_data.goods_type eq 1" />
    	<div class="unit u-money">
			<p class="time" >
				<a style="color:#fff;" id="j-timer-text" >距离活动结束 </a>
				<span class="hour">{$time.hour|htmlspecialchars}</span>时
				<span class="min">{$time.min|htmlspecialchars}</span>分
				<span class="sec">{$time.sec|htmlspecialchars}</span>秒
			</p>
	<else/>
		<div class="unit u-money u-money1">
	</if>

	<div class="u-money-left">
    	<p class="left-price-old">
        	<span style="text-decoration: line-through;">市场价：￥{$goods_data.market_price|htmlspecialchars}</span>
            <span class="left-earnest">定金：￥{$goods_data.goods_deposit|htmlspecialchars}</span>
        </p>
        <p class="left-price-now">
        	<if condition="$goods_data.goods_type eq 1">
	        	 促销价：￥<span class="price-sale">{$goods_data.promotion_price|htmlspecialchars}</span>/{$goods_data.goods_unit|htmlspecialchars}
	        <else />
	      		 商城价：￥<span class="price-sale">{$goods_data.shop_price|htmlspecialchars}</span>/{$goods_data.goods_unit|htmlspecialchars}
            </if>
        </p>
        <if condition = "$goods_data.goods_type eq 1 and $goods_data['promotion_start_time'] gt NOW_TIME">
			<p class="discount"><span>{$goods_data.goods_discount|htmlspecialchars}</span>折</p>
		<elseif condition = "$goods_data.goods_type eq 1 and $goods_data['promotion_end_time'] lt NOW_TIME"/>
		<elseif condition = "$goods_data.goods_type eq 1 and $goods_data['promotion_stock'] eq 0" />
    	<elseif condition = "$goods_data.goods_type eq 1" />
    		<p class="discount"><span>{$goods_data.goods_discount|htmlspecialchars}</span>折</p>
		</if>
        
        
        
        
	</div>
	<div class="u-money-right"> 
		<div class="right-code" id="QRcode">
			<img src="{$cur_url}" width="46" height="46"/>
		</div>
		<p>▼</p>
		<p>扫一扫二维码</p>
	</div>
</div>

<if condition="$goods_data['status'] eq 1">
	<p class="unit u-num">
		数量 <span class="buy-num">1</span>户  &nbsp;
		剩余<span class="surplus-num">
		<if condition="$goods_data.goods_type eq 1">
		{:randGoodsOrderCount($goods_data['promotion_stock'])}
		<else/>
		{:randGoodsOrderCount($goods_data['goods_stock'])}
		</if>
		</span>户
		<span class="message"><a href="{:C('NAVIGATION_LINK_BBS')}/forum.php?mod=viewthread&tid=83">网友评价</a></span>
	</p>
	<if condition="($goods_data.goods_type eq 1) and (time() lt $goods_data['promotion_start_time'])" >
		<div class="unit u-btn"><button class="btn js_btn btn-disable" id="btn" disabled="true">即将开始</button></div>
	<elseif condition="($goods_data.goods_type eq 1 and $goods_data.promotion_stock eq 0) or ($goods_data.goods_stock eq 0)"/>
		<div class="unit u-btn"><button class="btn btn1 btn-disable" disabled="true" >已售罄</button></div>
	<elseif condition="($goods_data.goods_type eq 1) and (time() gt $goods_data['promotion_end_time'])" />
	  	<div class="unit u-btn"><button class="btn js_btn btn-disable" id="btn" disabled="true">促销结束</button></div>
	<else />
		<div class="unit u-btn"><button class="btn js_btn" id="btn" autocomplete="off" >立即购买</button></div>
	</if>
<else/>
	<div class="unit u-tit u-tit1">此宝贝已下架</div>
	<notempty name="recommend_status_data">
		<div class=" unit u-recommend">
			<p class="recommend-tit">宝贝推荐</p>
			<volist name="recommend_status_data" id='vo'>
				<div class="u-recommend-inlayer">
					<div class="inlayer-good">
						<div class="good-img">
							<a href="{:U('Shop/goods',array('id'=>$vo['goods_id']))}">
								<img src="{$vo.pic_id|getPictureThumb=###,180,180}">
							</a>
						</div>
						<p class="good-tit">{$vo.goods_name|htmlspecialchars}</p>
						<if condition="$vo.goods_type eq 1">
							<p class="good-price">￥{$vo.promotion_price|htmlspecialchars}</p>
						<else />
							<p class="good-price">￥{$vo.shop_price|htmlspecialchars}</p>
						</if>
					</div>
				</div>
			</volist>
		</div>
	</notempty>
</if>
</div>
       <div class="block goods-msg">
       	  <div class="brand">
            <p class="shop-name">{$goods_data.shop_name|htmlspecialchars}</p>
            <a href="{:U('Shop/brand',array('id'=>$goods_data['shop_id']))}" class="go-on">进入店铺</a>
          </div>
          <div class="shop">
          <p class="tit">服务保障</p>
          <ul>
            <li>
              <p>正品保障</p>
				品牌入驻有标准，四证严格有把关。
            </li>
            <li>
              <p>低价保障</p>
				 三个月保价期，差额双倍赔付。
            </li>
            <li>
              <p>投诉维权</p>
				4小时反馈，72小时解决，百分百满意。
            </li>
            <li>
              <p>先行赔付</p>
				2000万商家质保金，先行赔付有保障。
            </li>
          </ul>
        </div>
        <div class="clearfix"></div>
      </div>
      <!-- /商品信息 -->
     
      <!-- 分享 -->
      <div class=" row share">
		<div class="bdsharebuttonbox"><span style="line-height:28px;float:left;">分享到：</span><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a></div>
		<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
      </div>
      <!-- /分享 -->

      <!-- 商品 -->
      <div class="row row-2">
        <!-- 商品推荐 -->
        <notempty name="recommend_data">
        <div class="block m-recommend">
          <h1>宝贝推荐</h1>
          <ul class="list">
          <volist name="recommend_data" id="vo">
            <li>
                <a class="img" href="{:U('Shop/goods',array('id'=>$vo['goods_id']))}"><img class="lazy" data-original="{$vo.pic_id|getPictureThumb=###,200,200}"/></a>
                <a class="title" href="{:U('Shop/goods',array('id'=>$vo['goods_id']))}">{$vo.goods_name|htmlspecialchars}</a>
                <div class="price">
	                <if condition="$vo.goods_type eq 1">
	                    <a class="new">￥{$vo.promotion_price|htmlspecialchars}</a>
	                    <a class="old">￥{$vo.market_price|htmlspecialchars}</a>
	                <else />
	            	    <a class="new">￥{$vo.shop_price|htmlspecialchars}</a>
	          	        <a class="old">￥{$vo.market_price|htmlspecialchars}</a>
	                </if>
                </div>
            </li>
           </volist>
          </ul>
        </div>
        </notempty>
        <!-- /商品推荐 -->

        <!-- 更多相关信息 -->
        <div class="block m-goods-info-more" id="j-goods-info-more">
          <ul class="tab-header">
            <li class="bg"></li>
            <li class="btn btn-active btn-1 goods-tab-btn-1">
              <a class="text">商品详情</a>
              <a class="arrow"></a>
            </li>
            <li class="btn btn-2 goods-tab-btn-2">
              <a class="text">购买须知</a>
              <a class="arrow"></a>
            </li>
            <li class="btn btn-3 goods-tab-btn-3">
              <a class="text">平台保障</a>
              <a class="arrow"></a>
            </li>
          </ul>
			
          <ul class="tab-content" id="j-goods-info-more-tab-content">
            <li class="content content-1">
	            <p align="center">
	            	{$goods_data.goods_content}
	            </p>
            </li>
            <li class="f-hide content content-2">
            	<p align="center">
					<img src="__SALE_V3__/img/buy01.jpg" data-original="__SALE_V3__/img/buy01.jpg" width="750" class="lazy"/>
				</p>
			</li>
            <li class="f-hide content content-3">
            	<p align="center">
					<img src="__SALE_V3__/img/protect02.jpg"  data-original="__SALE_V3__/img/protect02.jpg" width="750" class="lazy"/>
				</p>
			</li>
          </ul>

        </div>
        <!-- 更多相关信息 -->
      </div>
      <!-- /店铺信息 -->
    </div>
    <!-- /主体 -->
    <div style="clear:both"></div>
</block>
<block name="foot_js">
 	<script>
		var buy_url = "{:U('Shop/buy',array('id'=>(int)I('get.id')))}";
		$(".js_btn").click(function(){
	    	$(this).attr('disabled',true).addClass('btn-disable');
	    	location.href = buy_url;
		});
	    $("#btn-buy11").click(function(){
	    	$(this).attr('disabled',true).addClass('btn-buy1');
	    	location.href = buy_url;
		});
	</script>
  	<script src="__SALE_V3__/js/detail.pkg.js"></script>
</block>
